package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    //插入
    void add(OrderSetting orderSetting);

    //更新
    void editNumberByOrderDate(OrderSetting orderSetting);

    //判断是否预约
    long findCountByOrderDate(Date orderDate);

    //根据月份查询对应的预约数据
    List<OrderSetting> getOrderSettingByMonth(Map<String, String> map);

    //根据预约日期查询预约设置
    OrderSetting findByOrderDate(Date parseString2Date);

    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);
}
